


namespace Core.Extensions
{
    using System;
    using System.Collections.Generic;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Resources;

    /// <summary>
    /// Improved energy drain Extension class
    /// </summary>
    
    public sealed class ImprovedEnergyDrain: ExtensionBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Extensions.ImprovedEnergyDrain"/> class.
        /// </summary>
        public ImprovedEnergyDrain()
            : base(
                Traduction.extensions_improved_energy_drain, 
                ExtensionGroupsEnum.Engineering,
                6,
                0, 
                new ExtensionCost(180000,0),
                new ICondition<IExtension>[] {new ExtensionCondition<EfficientEnergyTransfer>(5)} )
        {
            
            
            //Each level of this extension raises the amount of drained energy by [[Help:Engineering_and_electronics|energy drainers]] by an additional 2%.
            Modifiers = new IModifier[]
                            {
                                new Modifier()
                                    {
                                        Feature = FeaturesEnum.EnergyDrainerDrainedEnergy,
                                        ModifiedFeatureType = FeatureTypesEnum.Module,
                                        Value = 0.02
                                    }
                            };

        }

        /// <summary>
        /// Obtains the extension description
        /// </summary>
        public override string Description
        {
            get { return Traduction.extensions_improved_energy_drain_description; }
        }
    }
}